// GPS SimulatorDlg.h : header file
//

#if !defined(AFX_GPSSIMULATORDLG_H__28394902_326C_4826_838E_09178B160FA8__INCLUDED_)
#define AFX_GPSSIMULATORDLG_H__28394902_326C_4826_838E_09178B160FA8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CGPSSimulatorDlg dialog

class CGPSSimulatorDlg : public CDialog
{
// Construction
public:
	CGPSSimulatorDlg(CWnd* pParent = NULL);	// standard constructor
	~CGPSSimulatorDlg();
// Dialog Data
	//{{AFX_DATA(CGPSSimulatorDlg)
	enum { IDD = IDD_GPSSIMULATOR_DIALOG };
	CString	m_strDetailsView;
	CString	m_strFilePath;
	int		m_COM_Port;
	int		m_Baud_Rate;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGPSSimulatorDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	char *fileBuffer;
	void WriteLogMessage(CString message);
	char* GetNextLine();
	DWORD fileSize, index;
	bool m_bRunning;

	// Generated message map functions
	//{{AFX_MSG(CGPSSimulatorDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBrowse();
	afx_msg void OnWrite();
	afx_msg void OnStop();
	afx_msg void OnExit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GPSSIMULATORDLG_H__28394902_326C_4826_838E_09178B160FA8__INCLUDED_)
